import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { Demo1Component } from "./index/demo1.component";
import { Demo2Component } from "./index/demo2.component";
import { Demo3Component } from "./index/demo3.component";
import { Demo4Component } from "./index/demo4.component";
import { Demo5Component } from "./index/demo5.component";

@NgModule({
  imports: [
    RouterModule.forChild([
      {
        path: "",
        children: [
          {
            path: "demo1",
            component: Demo1Component,
            data: { permission: "" },
          },
          {
            path: "demo2",
            component: Demo2Component,
            data: { permission: "" },
          },
          {
            path: "demo3",
            component: Demo3Component,
            data: { permission: "" },
          },
          {
            path: "demo4",
            component: Demo4Component,
            data: { permission: "" },
          },
          {
            path: "demo5",
            component: Demo5Component,
            data: { permission: "" },
          },
        ],
      },
    ]),
  ],
  exports: [RouterModule],
})
export class DatadisplayRoutingModule {}
